<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
  <%@ include file="/commons/taglibs.jsp"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>画廊资料发布成功</title>
<link href="../style/css_member.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../js/common.js"></script>
<script src="../js/artDialog.js?skin=gray"></script>
<script src="../js/artDialog.iframeTools.js"></script>
<script type="text/javascript" src="../js/jquery-1.3.2.js"></script>

<script type="text/javascript">

$(function(){
	$("a[name='addPaintingHref']").click(function(){
		art.dialog.open('${ctx }/painting/addPrepareByGallery.do?gallery_Id=${gallery.id }',{title:'添加作品',width:820,height:550,lock:true},false);
    });

	m1('m1_003');
});

/**修改画廊基本信息 **/
function modify(id){
	art.dialog.open('${ctx}/gallery/galleryAction!modifyPrepare.do?gallery.id='+id,{title:'修改画廊资料',width:820,height:550,lock:true},false);
}

function showNextPagePic(flag){

	var totalPages = document.getElementById("totalPages_Hidden").value;
	var cur_No = document.getElementById("curPage").value;
	
	if(totalPages == "" || cur_No == ""){
		return ;
	}
	if(flag>0){
		cur_No = parseInt(cur_No) + 1;
		var total_len = '${fn:length(page.result)}';
		if(parseInt(total_len) == 8){
			if(cur_No <= parseInt(totalPages)+1){
				document.getElementById("curPage").value = cur_No;
			}else{
				cur_No = totalPages;
			}
		}
		else if(parseInt(total_len) < 8){
			if(cur_No <= parseInt(totalPages)){
				document.getElementById("curPage").value = cur_No;
			}else{
				cur_No = totalPages;
			}
		}
	}else{
		cur_No = parseInt(cur_No) - 1;
		if(cur_No > 0 ){
			document.getElementById("curPage").value = cur_No;
		}else{
			cur_No = 1;
		}
	}
	
	var x = document.forms[0];
	x.submit();
}
</script>

</head>
<body>

<!-- 页面头部  -->
<jsp:include page="/commons/head_member.jsp"></jsp:include>

<table width="960" border="0" cellspacing="0" cellpadding="0"  class="tbl_border_top" align="center">
          <tr>
            <td align="center" class="bt14A" colspan="100%">画廊基本资料</td>
          </tr>
          <tr>
            <td class="bt14A" align="right" width="15%"><span class="style15">*</span> 画廊名称：</td>
            <td class="bt14A">${gallery.name }</td>
            <td width="198" rowspan="6" valign="top" class="bt14A" align="center">
                  <table width="165" height="217" border="0" cellpadding="0" cellspacing="1" bordercolor="#CCCCCC" bgcolor="#CCCCCC">
                    <tr>
                      <td bgcolor="#FFFFFF">
                      	<div id="photoTd" style="width: 165px;height: 217px;vertical-align: middle;text-align: center;overflow: hidden;">
                      		<img src="${gallery.imagepath}">
                      	</div>
                      </td>
                    </tr>
                  </table>
              </td>
          </tr>
          <tr>
            <td class="bt14A" align="right"><span class="style15">*</span> 画廊简介：</td>
            <td class="bt14A">${gallery.description }
            </td>
          </tr>
          <tr>
            <td class="bt14A" align="right"><span class="style15">*</span> 所在地：</td>
            <td class="bt14A">${gallery.provinceInfo.name }${gallery.cityInfo.name }${gallery.address }</td>
          </tr>
          <tr>
            <td class="bt14A" align="right">业务联系人：</td>
            <td class="bt14A">${gallery.contact }</td>
          </tr>
          <tr>
            <td class="bt14A"  align="right">咨询电话：</td>
            <td class="bt14A">${gallery.tel }
            	<!-- 隐藏域 begin -->
		            <input name="gallery.imageInfo.id" type="hidden"  id="picImage" value="${gallery.imageInfo.id }">
		        <!-- 隐藏域 end --> 
            </td>
          </tr>
          <tr>
           	<td></td>
           	<td><a href="javascript:modify(${gallery.id });"><img border="0" src="../images/an41.gif" width="106" height="31" style="cursor: pointer"/></a></td>
          </tr>
</table>

<%@ include file="/member/list_painting_fragment.jsp" %>

<jsp:include page="/commons/foot_member.jsp"></jsp:include>

</body>
</html>